include_directories(
  ${CMAKE_CURRENT_SOURCE_DIR}
  cpl
  mitab
  ogr
)

set( mitab_cpl_STAT_SRCS
  cpl/cpl_conv.cpp
  cpl/cpl_csv.cpp
  cpl/cpl_dir.cpp
  cpl/cpl_error.cpp
  cpl/cpl_findfile.cpp
  cpl/cpl_getexecpath.cpp
  cpl/cplgetsymbol.cpp
  cpl/cpl_minixml.cpp
  cpl/cpl_multiproc.cpp
  cpl/cpl_path.cpp
  cpl/cplstring.cpp
  cpl/cpl_string.cpp
  cpl/cpl_vsil.cpp
  cpl/cpl_vsil_simple.cpp
  cpl/cpl_vsil_unix_stdio_64.cpp
  cpl/cpl_vsil_win32.cpp
  cpl/cpl_vsi_mem.cpp
  cpl/cpl_vsisimple.cpp
)

set( mitab_mitab_STAT_SRCS
  mitab/mitab_bounds.cpp
  mitab/mitab_capi.cpp
  mitab/mitab_coordsys.cpp
  mitab/mitab_datfile.cpp
  mitab/mitab_feature.cpp
  mitab/mitab_feature_mif.cpp
  mitab/mitab_freelist.cpp
  mitab/mitab_geometry.cpp
  mitab/mitab_idfile.cpp
  mitab/mitab_imapinfofile.cpp
  mitab/mitab_indfile.cpp
  mitab/mitab_mapcoordblock.cpp
  mitab/mitab_mapfile.cpp
  mitab/mitab_mapheaderblock.cpp
  mitab/mitab_mapindexblock.cpp
  mitab/mitab_mapobjectblock.cpp
  mitab/mitab_maptoolblock.cpp
  mitab/mitab_middatafile.cpp
  mitab/mitab_miffile.cpp
  mitab/mitab_mifidxfile.cpp
  mitab/mitab_ogr_datasource.cpp
  mitab/mitab_ogr_driver.cpp
  mitab/mitab_rawbinblock.cpp
  mitab/mitab_spatialref.cpp
  mitab/mitab_tabfile.cpp
  mitab/mitab_tabseamless.cpp
  mitab/mitab_tabview.cpp
  mitab/mitab_tooldef.cpp
  mitab/mitab_utils.cpp
)

set( mitab_ogr_STAT_SRCS
  ogr/gml2ogrgeometry.cpp
  ogr/ogr2gmlgeometry.cpp
  ogr/ogr_api.cpp
  ogr/ogr_attrind.cpp
  ogr/ogrct.cpp
  ogr/ogrcurve.cpp
  ogr/ogrdatasource.cpp
  ogr/ogrfeature.cpp
  ogr/ogrfeaturedefn.cpp
  ogr/ogrfeaturequery.cpp
  ogr/ogrfeaturestyle.cpp
  ogr/ogrfielddefn.cpp
  ogr/ogr_fromepsg.cpp
  ogr/ogr_gensql.cpp
  ogr/ogrgeometry.cpp
  ogr/ogrgeometrycollection.cpp
  ogr/ogrgeometryfactory.cpp
  ogr/ogrlayer.cpp
  ogr/ogrlinearring.cpp
  ogr/ogrlinestring.cpp
  ogr/ogr_miattrind.cpp
  ogr/ogrmultilinestring.cpp
  ogr/ogrmultipoint.cpp
  ogr/ogrmultipolygon.cpp
  ogr/ogrpoint.cpp
  ogr/ogrpolygon.cpp
  ogr/ogrsfdriver.cpp
  ogr/ogrsfdriverregistrar.cpp
  ogr/ogrspatialreference.cpp
  ogr/ogr_srs_dict.cpp
  ogr/ogr_srs_esri.cpp
  ogr/ogr_srsnode.cpp
  ogr/ogr_srs_proj4.cpp
  ogr/ogr_srs_xml.cpp
  ogr/ogrsurface.cpp
  ogr/ogrutils.cpp
  ogr/swq.c
)

add_library( mitab STATIC ${mitab_SRCS} )
